<?php
// define array
$arr = array (
  0 => 'one',
  1 => 'two',
  2 => 'three',
  3 => 'four',
);

echo $str =

implode('#', $arr);

echo "\n\n";
// define string
$str = 'tinker tailor soldier spy';
$arr = explode(' ', $str);
print_r($arr);
